package com.banciyuan.bcywebview.biz.circles.base;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.ViewPager;
import android.text.TextUtils;

import com.android.volley.RequestQueue;
import com.banciyuan.bcywebview.base.activity.BaseActivity;
import com.banciyuan.bcywebview.utils.http.VolleyQueue;
import com.banciyuan.bcywebview.utils.intent.gotoUtil;

/**
 * Created by squall on 2016/6/13.
 */
public class CircleBaseActivcity extends BaseActivity {

    protected int from;
    protected String id;
    protected String name;
    protected FragmentManager fm;
    protected String type;
    protected RequestQueue mQueue;
    protected ViewPager mPager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initArgs() {
        fm = getSupportFragmentManager();
        Intent intent = getIntent();
        from = intent.getIntExtra("from", 0);
        if (!TextUtils.isEmpty(intent.getStringExtra(gotoUtil.INTENT_VALUE_TWO))) {
            id = intent.getStringExtra(gotoUtil.INTENT_VALUE_TWO);
        }
        if (!TextUtils.isEmpty(intent.getStringExtra(gotoUtil.INTENT_VALUE_ONE))) {
            name = intent.getStringExtra(gotoUtil.INTENT_VALUE_ONE);
        }
        if (!TextUtils.isEmpty(intent.getStringExtra("type"))) {
            type = intent.getStringExtra("type");
        }
        mQueue = VolleyQueue.getRquest(this);
    }


}
